home *** CD-ROM | disk | FTP | other *** search
- DOCUMENTATION FOR LSET.EXE
- A KEYBOARD DRIVER FOR THE LOGITECH C7 LogiMouse
-
- WRITTEN BY MARK E JOHNSON June 14, 1986
- 2272-F Benson Avenue
- St. Paul, MN 55116
- (612)-698-3686
-
- HOW TO USE LSET
-
- Before running LSET, be sure that the mouse driver has been
- loaded into memory by either running MOUSE.COM or by
- including "DEVICE=MOUSE.SYS" in your CONFIG.SYS file. If
- you don't have the mouse driver in memory before running
- LSET, the system will probably get hung and you'll have to
- reset your computer.
-
- Run LSET by Typing its' name. You will see a menu like the
- one below:
-
- ---------------------------------------------------------------
- Waiting for Button
-
- Mouse Forward
- Mouse Backward
- Mouse Left
- Mouse Right
- EXIT
- Button 1 Down
- Button 1 Up
-
- Button 2 Down
- Button 2 Up
-
- Button 3 Down
- Button 3 Up
-
- X scale 1-9
- Y scale 1-9
- ---------------------------------------------------------------
-
- To pick an option, move the cursor to anywhere on the line
- on which the option is located, and press the left button of
- the mouse. The status line at the top of the screen will
- show that the program is waiting for key sequences. Press
- the EXACT KEYSTROKES that you want the mouse to generate for
- the given function. When you are done, press the left
- button of the mouse again to terminate the entry.
-
- NOTE: the X and Y scale options only expect a single digit
- from 0 to 9. You don't have to terminate the entry by
- pressing a mouse key.
-
- When you are done defining keystrokes, move the mouse to the
- line which contains "EXIT", and depress the left mouse
- button. When you do this, the definitions you have created
- will be programmed into the mouse, and LSET will terminate.
-
-
- The following are mouse settings I commonly use with various
- software packages:
-
- WordStar or Turbo Pascal:
- mouse forward: <UP arrow>
- backward: <DOWN arrow>
- left: <LEFT arrow>
- right: <RIGHT arrow>
- Button 1 press: Cntrl-K Cntrl-B
- release: Cntrl-K Cntrl-K
- Button 2 press: Cntrl-R
- Button 3 press: Cntrl-C
- X scale : 4
- Y scale : 3
-
-
- PC-Outline (Excellent public domain outline processor)
- Same as Wordstar above except:
- Button 1 press: <INS>
- Button 2 press: <Return>
- Button 3 press: <Escape>
-
-
- IMPLEMENTATION NOTES
-
- 1. This program was compiled with LATTICE C Version 2.14 using
- the SMALL MODEL. The Following files are required for
- compilation:
- LSET.C The main program
- KEY_SCAN.OBJ Assembler keyboard routine
-
- To compile the program:
- LC -MS LSET
-
- To Link the program:
- LINK C+LSET+KEY_SCAN, LSET,, LC
-
-
- Program Structure
-
- DOS INTERFACE
- The DOS routines are written in C with one exception which
- is outlined in the next section. I am very dissapointed
- with the speed of the standard BIOS screen IO routines, so I
- wrote my own. The two GLOBAL variables LINE and COLUMN
- contain the current cursor position. Whenever a character
- is written to the screen, these variables are updated. The
- routines I use are as follows:
-
- VOID vgotoxy(x,y) sets the cursor position to line x,
- column y
-
- VOID clrs() Clear the screen and home the cursor.
-
- VOID clreol() Delete from current position to end of
- line.
-
- VOID vputc(mode,c) Write character 'c' with attribute
- 'mode' to current xy position.
-
- VOID vputs(mode,s) Write string pointed to by 's' with
- attribute 'mode' at current xy
- position.
-
-
- KEYBOARD INTERFACE
- I had to resort to assembler to get the keyboard routines to
- work properly. KEY_SCAN.ASM simply calls the BIOS keyboard
- interrupt and returns the ASCII code and/or Extended code of
- the last key pressed.
-
-
- MOUSE INTERFACE
- I elected to write my own mouse routines rather than the
- routines supplied with the mouse. The advantage of my
- routines is that they are entirely written in C, and
- therefore, in my opinion, easier to understand. Another
- reason was that the routines supplied by Logitech were
- incomplete.
-